#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author   : Moty
# @Time     : 2024/1/22 0:09
# @File     : jt808_8003.py
# @Project  : jt808
def parse_supplementary_sub_request(body):
    # 解析0x8003 补传分包请求
    data = {
        "原始消息流水号": body[0:4],
        "重传包总数": int(body[4:6], 16),
        "重传包ID列表": body[6:],
    }
    formatted_data = ""
    for key, value in data.items():
        formatted_data += f"{key}: {value}\n"
    return formatted_data


__all__ = ['parse_supplementary_sub_request']
